package cuckoo.test;

import java.lang.reflect.Method;
import java.util.Arrays;

import cuckoo.aop.intercept.AfterInterceptor;
import cuckoo.aop.intercept.ExceptionInterceptor;

public class MyInterceptor2 implements AfterInterceptor,ExceptionInterceptor {

	@Override
	public void after(Method m, Object[] args) {
		System.out.println("after  " + m.toString());
		System.out.println("after  " + Arrays.toString(args));
	}

	@Override
	public void exception(Method m, Object[] args, Exception e) {
		System.out.println("exception  " + m.toString());
		e.printStackTrace();
	}

}
